package com.example.demo.spring.aop.demo;

import com.example.demo.spring.aop.annotation.Aspect;
import com.example.demo.spring.aop.annotation.PointCut;
import com.example.demo.spring.aop.proxy.AbsMethodAdvance;

/**
 * @author: htc
 * @date: Created in 14:37 2019/2/20.
 */
@Aspect
public class TestAspect extends AbsMethodAdvance {
    @Override
    public void doBefore() {
        System.out.println("do before");
    }

    @Override
    public void doAfter() {
        System.out.println("do after");
    }

    /**
     * 全类名_方法名
     */
    @PointCut("com.example.swap.spring.aop.swap.Test_doSomething")
    public void testAspect(){
    }
}
